import Layout from '@/layouts';

export default [
  {
    path: '/zjk',
    component: Layout,
    redirect: '/zjk/home',
    meta: {
      // title: '信息化运行监控',
      title: '专家库',
      isOrNot: true,
      // icon: 'view-module',
    },
    children: [
      {
        path: 'home',
        component: () => import('@/pages/zjk/home.vue'),
        meta: {title: '首页', icon: 'view-module'},
      },
      {
        path: 'my-info',
        component: () => import('@/pages/zjk/expert/expert-detail.vue'),
        meta: {title: '个人信息维护', icon: 'view-module'},
      },
      {
        path: 'expert',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/zjk/expert/expert-index',
        meta: {title: '专家管理', icon: 'view-module'},
        children: [
          {
            path: 'expert-index',
            component: () => import('@/pages/zjk/expert/expert-index.vue'),
            name: 'zjk-expert-expert-index',
            meta: { title: '专家列表', isAlive: true},
          },
        ]
      },
      {
        path: 'review',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/zjk/review/review-my',
        meta: {title: '评审管理', icon: 'view-module'},
        children: [
          {
            path: 'review-my',
            component: () => import('@/pages/zjk/review/review-my.vue'),
            meta: { title: '待我评审记录' }
          },
          {
            path: 'reviewed-my',
            component: () => import('@/pages/zjk/review/reviewed-my.vue'),
            meta: { title: '我已评审记录' }
          }
        ]
      },
      {
        path: 'defend3',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/home/defend3/defend1',
        meta: { title: '继续教育管理', icon: 'view-module'},
        children: [
          {
            path: 'defend1',
            component: () => import('@/pages/blank.vue'),
            meta: { title: '资料管理'},
          },
          {
            path: 'defend2',
            component: () => import('@/pages/blank.vue'),
            meta: { title: '学习计划管理'},
          },
          {
            path: 'defend3',
            component: () => import('@/pages/blank.vue'),
            meta: { title: '学习记录管理'},
          },
        ]
      },
    ]
  }
]
